package org.eleorc.ioc.container.extension.beanpostprocessor.ext;

import org.eleorc.utils.ApplicationContextUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        ApplicationContextUtils.printBeanDefinitionInfo(context.getBeanFactory());

        MyService bean = context.getBean(MyService.class);
        bean.foo();
    }
}
